package com.woniu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu.entity.dto.TrainerSearchDTO;
import com.woniu.pojo.Trainer;
import com.woniu.entity.vo.TrainerListVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TrainerMapper extends BaseMapper<Trainer> {

    Page<TrainerListVO> listSearch(Page<TrainerListVO> page, @Param("trainerSearchDTO") TrainerSearchDTO trainerSearchDTO);

    @Select("select * from wnxt_trainer")
    List<Trainer> listAll();

    @Select("select name from wnxt_trainer")
    List<Trainer> listTrainerName();
}